package projects.myDvdCollection.pageObjects.elements;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

import projects.myDvdCollection.pageObjects.MyDvdCollectionPageBase;
import fw.ApplicationManager;

public class SearchPageElements extends MyDvdCollectionPageBase {

	public SearchPageElements(ApplicationManager app) {
		super(app);
	}

	public List<WebElement> searchResult() {
		return app.elementFinder().findDynamicList(By.xpath(".//div[contains(@id, 'movie_')]//div[@class='title']"));
	}

	public WebElement txtSearch() {
		return app.elementFinder().findDynamic(By.id("q"));
	}
}
